Skip to content

Adding support for secondary I2C interfaces found on some boards.#1

Open
xcvista wants to merge 2 commits intohotchpotch:masterfrom
ArduinoMax:master
Open

Adding support for secondary I2C interfaces found on some boards.#1
xcvista wants to merge 2 commits intohotchpotch:masterfrom
ArduinoMax:master

Conversation

@xcvista
Copy link
Copy Markdown

@xcvista xcvista commented Mar 17, 2017

I have an Arduino Due and I want to detect devices on the secondary I2C bus. This modification shouldn't break the compatibility to existing code in most cases.

@sl1pkn07
Copy link
Copy Markdown

sl1pkn07 commented Dec 22, 2020

Compiling .pio/build/esee/lib807/i2cdetect/i2cdetect.cpp.o
.pio/libdeps/esee/i2cdetect/i2cdetect.cpp: In function 'void i2cdetect()':
.pio/libdeps/esee/i2cdetect/i2cdetect.cpp:55:23: error: no matching function for call to 'i2cdetect(int, int)'
   i2cdetect(0x03, 0x77);
                       ^
.pio/libdeps/esee/i2cdetect/i2cdetect.cpp:24:6: note: candidate: void i2cdetect(TwoWire&, uint8_t, uint8_t)
 void i2cdetect(TwoWire &wire, uint8_t first, uint8_t last) {
      ^~~~~~~~~
.pio/libdeps/esee/i2cdetect/i2cdetect.cpp:24:6: note:   no known conversion for argument 1 from 'int' to 'TwoWire&'
.pio/libdeps/esee/i2cdetect/i2cdetect.cpp:54:6: note: candidate: void i2cdetect()
 void i2cdetect() {
      ^~~~~~~~~
.pio/libdeps/esee/i2cdetect/i2cdetect.cpp:54:6: note:   candidate expects 0 arguments, 2 provided
*** [.pio/build/esee/lib807/i2cdetect/i2cdetect.cpp.o] Error 1

or i miss something?

greetings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants